package com.lfy.modules.letter.domain.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class GlobalLetterDTO {
    @Length(min = 1,max = 100,message = "标题长度不能大于100")
    @NotBlank(message = "标题不能为空")
    private String subject;
    @Length(min = 1,max = 5000,message = "内容长度不能大于5000")
    @NotBlank(message = "内容不能为空")
    private String content;
    private Integer isUrgent;
    private Integer isSendEmail;
}
